#include <stdio.h>
#include <assert.h>
//模拟实现strcpy
char* my_strcpy(char* dest, const char* src)
{
	char* ret = dest;
	assert(dest != NULL);
	assert(src != NULL);

	while (*dest++ = *src++)
	{
		;
	}

	return ret;
}

int main()
{
	//strcpy
	//字符串拷贝
	char arr1[] = "######";
	char arr2[] = "bit";
	my_strcpy(arr1, arr2);
	printf("%s\n", arr1);
	
	return 0;
}